#pragma once
#include "../Headers/types.h"
#include "../Headers/authr.h"
//#include "../US/US.h"
#include "../NS/nameserver.h"

namespace TOB {
  class AuthorizationSRV: AuthRequired {
   public:
    AuthorizationSRV(Nameserver::IP nsip, std::string username, 
        std::string password);

    Code::Type policy(Policy::Type policy, bool &out);
    Code::Type role(Role::Type role, bool &out);

   protected:
    Code::Type res;
    bool online;
  };
}
